package com.andy.beef.ui.main.bean

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.google.gson.annotations.SerializedName
import java.io.Serializable

class FenceBean(
    var area: Double = 0.0,
    var cattleFarmId: Long = 0,
    var cattleNum: Int = 0,
    var cowshedId: Long = 0,
    var cowshedName: String = "",
    var epcNo: String = "",
    var fenceName: String = "",
    var fenceNo: String = "",
    @SerializedName("id")
    var fenceId: Long = 0L,
    var remark: String = "",
    var type: String = "",
    var selectCow: Int = 0,//选中的牛的数目当前牛栏下
    var typeDesc: String = "",
    override val itemType: Int
) : Serializable, MultiItemEntity {

    var viewType = 0


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as FenceBean

        if (fenceId != other.fenceId) return false

        return true
    }

    override fun hashCode(): Int {
        return fenceId.hashCode()
    }


}

